package com.laogao.lesson001.comm;

/**
 * <b>description</b>： Java进阶、性能优化实战案例100讲，微信公众号:程序员恰恰，源码 & 文档 & 技术支持，请加个人微信号：it3306 <br>
 * <b>time</b>：2025/2/18 22:47 <br>
 * <b>author</b>：ready lao_gao
 */
public class ServiceExceptionUtils {
    public static ServiceException exception(String message, String code) {
        return new ServiceException(message, code);
    }

    public static ServiceException exception(String message) {
        return exception(message, null);
    }

    public static void throwException(String message, String code) {
        throw exception(message, code);
    }

    public static void throwException(String message) {
        throwException(message, null);
    }

}
